package com.demo1;

/**
 * Created by Administrator on 2017/3/25.
 */
public class ZiDongZhuanHuan {
    public static void main(String[] args) {
        short s = 3;
        int i = s;
        float f = 1.0f;
        double d1 = f;
        long l = 234L;
        double d2 = l;
        System.out.println("short自动类型转换为int后的值等于" + i);
        System.out.println("float自动类型转换为double后的值等于" + d1);
        System.out.println("long自动类型转换为double后的值等于" + d2);
    }
}
